import re

text = 'file:///D:/liuwt/桌面/新建文本文档 (2).txts'

if re.match('^file:///', text):
    print('aaa')

a = []
a.append(text)
print(a)
